home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 526-550 / disk_541 / steal / src / gadget.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  4KB  |  133 lines

  1. /***** Intuition structures stolen by means of Steal 1.1 by Rick van Rein */
  2.  
  3.  
  4. #include <intuition/intuition.h>
  5. #include <graphics/view.h>
  6.  
  7. #define BLUE_0      0
  8. #define WHITE_1     1
  9. #define BLACK_2     2
  10. #define ORANGE_3    3
  11.  
  12.  
  13. USHORT pic1 []=
  14.  {
  15.                 /* Plane 0 contains a picture: */
  16.    0x0000,0x0000,0x0000,0x0000,0x0000,
  17.    0x0000,0x0000,0x0000,0x0000,0x0000,
  18.    0x0000,0x0000,0x0000,0x0000,0x0000,
  19.    0x0000,0x0000,0x0000,0x0000,0x0000,
  20.    0x0000,0x0000,0x0000,0x0000,0x0000,
  21.    0x0000,0x0000,0x0000,0x0000,0x0000,
  22.    0x0000,0x0000,0x0000,0x0000,0x0000,
  23.    0x0000,0x0000,0x0000,0x0000,0x0000,
  24.    0x0000,0x0000,0x0004,0x0000,0x0000,
  25.    0x0000,0x003e,0x0001,0xf000,0x0000,
  26.    0x0000,0x0ffc,0x0000,0xff00,0x0000,
  27.    0x0007,0xfff8,0x0000,0xfff0,0x0000,
  28.    0x0003,0xfff8,0x0000,0x7fff,0xf000,
  29.    0x0000,0x3ffc,0x0000,0x7fff,0xc000,
  30.    0x0000,0x01fe,0x0000,0xff80,0x0000,
  31.    0x0000,0x000f,0x0003,0xc000,0x0000,
  32.    0x0000,0x0000,0x0000,0x0000,0x0000,
  33.    0x0000,0x0000,0x0000,0x0000,0x0000,
  34.                 /* Plane 1 contains a picture: */
  35.    0x0000,0x0000,0x0000,0x0000,0x0000,
  36.    0x0000,0x0002,0x3020,0x0000,0x0000,
  37.    0x0000,0x0082,0x2060,0x1000,0x0000,
  38.    0x0000,0x0881,0x2040,0x2040,0x0000,
  39.    0x0004,0x0cc1,0x20c0,0x60c0,0x0000,
  40.    0x0006,0x0441,0x2081,0x8181,0x0000,
  41.    0x0022,0x0661,0x3707,0x0703,0x0400,
  42.    0x0221,0x8330,0xfffe,0x0c06,0x0c10,
  43.    0x031e,0xf8ff,0x8003,0xf818,0x1830,
  44.    0x11e3,0x1fc0,0x0000,0x0f70,0x3020,
  45.    0x183f,0xf000,0x0780,0x00f8,0x6060,
  46.    0x0f78,0x0000,0x0fc0,0x000f,0xf980,
  47.    0x03fc,0x0000,0x0780,0x0000,0x0fe0,
  48.    0x0003,0xc000,0x0000,0x0000,0x3f00,
  49.    0x0000,0x7e00,0x0000,0x007f,0xe000,
  50.    0x0000,0x03f0,0x0000,0x3f80,0x0000,
  51.    0x0000,0x000f,0xffff,0xe000,0x0000,
  52.    0x0000,0x0000,0x0000,0x0000,0x0000
  53.  };
  54.  
  55. struct Image img1=
  56.  {
  57.    0,0,                        /* LeftEdge,TopEdge */
  58.    79,18,2,                    /* Width,Height,Depth */
  59.    pic1,                    /* ImageData */
  60.    0x03,0x00,                    /* PlanePick,PlaneOnOff */
  61.    NULL                        /* NextImage */
  62.  };
  63.  
  64. USHORT pic2 []=
  65.  {
  66.                 /* Plane 0 contains a picture: */
  67.    0x0000,0x0000,0x0000,0x0000,0x0000,
  68.    0x0000,0x0000,0x0000,0x0000,0x0000,
  69.    0x0000,0x0000,0x0000,0x0000,0x0000,
  70.    0x0000,0x0000,0x0000,0x0000,0x0000,
  71.    0x0000,0x0000,0x0000,0x0000,0x0000,
  72.    0x0000,0x0000,0x0000,0x0000,0x0000,
  73.    0x0000,0x0000,0x0000,0x0000,0x0000,
  74.    0x0000,0x0000,0x0000,0x0000,0x0000,
  75.    0x0000,0x0000,0x0000,0x0000,0x0000,
  76.    0x0000,0x0000,0x0000,0x0000,0x0000,
  77.    0x0000,0x0000,0x0000,0x0000,0x0000,
  78.    0x0000,0x0000,0x0000,0x0000,0x0000,
  79.    0x0000,0x0000,0x0000,0x0000,0x0000,
  80.    0x0000,0x0000,0x0000,0x0000,0x0000,
  81.    0x0000,0x0000,0x0000,0x0000,0x0000,
  82.    0x0000,0x0000,0x0000,0x0000,0x0000,
  83.    0x0000,0x0000,0x0000,0x0000,0x0000,
  84.    0x0000,0x0000,0x0000,0x0000,0x0000,
  85.    0x0000,0x0000,0x0000,0x0000,0x0000,
  86.                 /* Plane 1 contains a picture: */
  87.    0x0000,0x0000,0x0000,0x0000,0x0000,
  88.    0x0000,0x0000,0x0000,0x0000,0x0000,
  89.    0x0000,0x0000,0x0000,0x0000,0x0000,
  90.    0x0000,0x0000,0x0000,0x0000,0x0000,
  91.    0x0000,0x0000,0x0000,0x0000,0x0000,
  92.    0x0000,0x0000,0x0000,0x0000,0x0000,
  93.    0x0040,0x0000,0x0080,0x0000,0x0000,
  94.    0x00c4,0x0011,0xfffe,0x0820,0x0020,
  95.    0x0086,0x05ff,0x2087,0xf820,0x3060,
  96.    0x20c2,0x3fa3,0x6186,0x1e20,0x6040,
  97.    0x307f,0xe666,0x418c,0x09f0,0xc0c0,
  98.    0x1ed3,0x6264,0x418c,0x187f,0xf300,
  99.    0x07ff,0xfb24,0xc184,0x31cf,0xffc0,
  100.    0x0007,0x8ff4,0xc307,0xfffe,0x7e00,
  101.    0x0000,0xfc1f,0xfffc,0x00ff,0xc000,
  102.    0x0000,0x07e0,0x0000,0x7f00,0x0000,
  103.    0x0000,0x001f,0xffff,0xc000,0x0000,
  104.    0x0000,0x0000,0x0000,0x0000,0x0000,
  105.    0x0000,0x0000,0x0000,0x0000,0x0000
  106.  };
  107.  
  108. struct Image img2=
  109.  {
  110.    0,0,                        /* LeftEdge,TopEdge */
  111.    78,19,2,                    /* Width,Height,Depth */
  112.    pic2,                    /* ImageData */
  113.    0x03,0x00,                    /* PlanePick,PlaneOnOff */
  114.    NULL                        /* NextImage */
  115.  };
  116.  
  117. struct Gadget gad1=
  118.  {
  119.    NULL,                    /* NextGadget */
  120.    5,15,                    /* LeftEdge,TopEdge */
  121.    79,18,                    /* Width,Height */
  122.    GADGHIMAGE | GADGIMAGE,            /* Flags */
  123.    RELVERIFY | GADGIMMEDIATE,            /* Activation */
  124.    BOOLGADGET,                    /* GadgetType */
  125.    (APTR) &img1,                /* GadgetRender (Image) */
  126.    (APTR) &img2,                /* SelectRender (Image) */
  127.    NULL,                    /* GadgetText */
  128.    0x00000000,                    /* MutualExclude */
  129.    NULL,                    /* SpecialInfo (BoolInfo) */
  130.    0,                        /* GadgetID */
  131.    0x00000000                    /* UserData */
  132.  };
  133.